package org.real.tomcat.study;

import java.sql.Timestamp;

public class LoggerTimeStamp {
	public static void main(String[] args) {
		Timestamp timestamp = new Timestamp(System.currentTimeMillis());
		String ts = timestamp.toString();
		System.out.println(ts.substring(0, 10));
		System.out.println(ts.substring(0, 19));
	}
}
